﻿using S7.Net;
using System;
using System.Collections.Generic;
using System.Text;

namespace S7NETPLC
{
   public class PLCConfig
    {
        /// <summary>
        /// PLC类型
        /// </summary>
        public CpuType cpu { get; set; }
        /// <summary>
        /// plc地址
        /// </summary>
        public string ip { get; set; }
        /// <summary>
        /// Port number used for the connection, default 102.端口
        /// </summary>
        public int? port { get; set; }
        /// <summary>
        /// rack of the PLC, usually it's 0, but check in the hardware configuration of Step7  or TIA portal
        /// </summary>
        public short? rack { get; set; }
        /// <summary>
        /// slot of the CPU of the PLC, usually it's 2 for S7300-S7400, 0 for S7-1200 and
        /// S7-1500. If you use an external ethernet card, this must be set accordingly.
        /// </summary>
        public short? slot { get; set; }
    }
}
